<?php
	session_start();	
?>

<?php
	if( $_SESSION["admin"] != "" )
	{
?>
<?php
	include_once("process/template.php");
	$template = new template();
		
	if( $_GET['com'] == "template" && $_GET['func'] == "delete" && isset($_GET['id']) )
	{		
		$template->DeleteTemplate($_GET['id']);
		echo '<meta http-equiv="Refresh" content="0;URL=index.php?com=template" />';
	}
	else
	{
		exit();
	}
    }
   else
	{
		echo "<meta http-equiv='refresh' content='0; url=login.php' />";
	}
?>